$(function(){

 findorder=function(basepath,orderid){
	 $.post(basepath+"/mcenter/findOrderTById.action",{
	      "confirmorderid":orderid
	    },function(data){
	    	if(data.orderObj == null){
	    		alert("支付方式不存在");
	    		return false;
	    	} else if(data.orderObj.paycode == "zfb") {
	    		window.location.href="../ui/alipay/zfb/alipayapi.jsp?out_trade_no="+data.orderObj.out_trade_no+"&subject="+data.orderObj.subject+"&total_fee="+data.orderObj.total_fee+"&paycode="+data.orderObj.paycode;
	    	} else if(data.orderObj.paycode == "wyzf"){
	    		window.location.href="../ui/alipay/wyzf/alipayapi.jsp?out_trade_no="+data.orderObj.out_trade_no+"&subject="+data.orderObj.subject+"&total_fee="+data.orderObj.total_fee+"&defaultbank="+data.orderObj.defaultbank+"&paycode="+data.orderObj.paycode;
	    	}

	    });
 }

});